package DAO;

import service.IDesDao;
import service.IMasterDao;
import service.IPetDao;
import service.IUserDao;
import service.IVetDao;
/**
 * 
 * @author Administrator DAO工厂类，为DAO调用者提供DAO实例对象  
 * 借口声明对象后直接调用方法
 *     
 */
public class DaoFactory {
	public static IUserDao getUserDao(){
		return new UserDaoImp();
	}
	public static IPetDao getProductDao(){
		return new PetbeanImp();
	}
	
	public static IMasterDao getMasterDao(){
		return new  MasterDaoImp();
	}
	
	public static IVetDao getVetDao(){
		return new  VetDaoImp();
	}
	
	public static IDesDao getDesDao(){
		return new  DesDaoImp();
	}
}
